package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 交通信息对象 TrafficInfo
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
public class TrafficInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交通信息标识 */
    private Long trafficId;

    /** 交通信息位置 */
    @Excel(name = "交通信息位置")
    private String location;

    /** 交通状况 */
    @Excel(name = "交通状况")
    private String trafficCondition;

    /** 时间戳 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间戳", width = 30, dateFormat = "yyyy-MM-dd")
    private Date timestamp;

    public void setTrafficId(Long trafficId) 
    {
        this.trafficId = trafficId;
    }

    public Long getTrafficId() 
    {
        return trafficId;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setTrafficCondition(String trafficCondition) 
    {
        this.trafficCondition = trafficCondition;
    }

    public String getTrafficCondition() 
    {
        return trafficCondition;
    }
    public void setTimestamp(Date timestamp) 
    {
        this.timestamp = timestamp;
    }

    public Date getTimestamp() 
    {
        return timestamp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trafficId", getTrafficId())
            .append("location", getLocation())
            .append("trafficCondition", getTrafficCondition())
            .append("timestamp", getTimestamp())
            .toString();
    }
}
